TARGET = liblbutils.a

SRCS = $(wildcard *.c)
OBJS = $(foreach src, $(SRCS), $(basename $(src)).o )


AR = ar
CXX = gcc

CFLAGS += -pipe -Wall -g -DLBTEST
LDFLAGS +=

#####################################
.PHONY : all clean

all : $(TARGET)

$(TARGET) : $(OBJS)
	$(AR) crv $@ $(OBJS)

clean :
	@rm -f $(TARGET) *.o

##################################
.SUFFIXES : .c

.c.o :
	$(CXX) $(CFLAGS) -c -o $@ $<
